package com.shenyong.ladmin.mapper;

import com.shenyong.ladmin.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author
 * @site
 * @company
 * @create
 */
public interface MenuMapper {
    public List<Menu> getTreeTable();
    public List<Menu> getTree(Integer user_id);
    public List<Menu> getTreeChildren(@Param("user_id") Integer user_id,@Param("id") Integer id);

    public int saveTreeTable(Menu menu);

    public List<Menu> selectMenuPid(int id);
    public int deleteTreeTable(int id);

    public int updateTreeTable(Menu menu);

    public List<Menu> getByParent(int id);
    public List<Menu> getTreeOne();
}
